//
//  TJUrlDataModel.m
//  BaoDian
//
//  Created by mac on 2024/8/7.
//

#import "TJUrlDataModel.h"

@implementation TJUrlDataModel

MJLogAllIvars

+ (NSArray *)bg_uniqueKeys {
    return @[@"url"];
}

- (NSString *)bg_tableName {
    return [NSString stringWithFormat:@"%@", NSStringFromClass(self.class)];
}

+ (NSString *)bg_tableName {
    return [NSString stringWithFormat:@"%@", NSStringFromClass(self.class)];
}

+ (TJUrlDataModel *)modelWithUrl:(NSString *)url {
    return  [TJUrlDataModel bg_find:[TJUrlDataModel bg_tableName] where:[NSString stringWithFormat:@"where %@=%@", bg_sqlKey(@"url"), bg_sqlValue(url)]].firstObject;
}


@end
